package com.zeei.ems.meet.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zeei.ems.base.page.PageParamVO;
import com.zeei.ems.meet.dao.StatLatestDao;
import com.zeei.ems.meet.model.ProcessLogVO;
import com.zeei.ems.meet.model.vo.ProcessLogParam;
import com.zeei.ems.meet.service.ProcessLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProcessLogServiceImpl implements ProcessLogService {
    @Autowired
    StatLatestDao statLatestDao;

    @Override
    public PageInfo<ProcessLogVO> listProcessLog(PageParamVO page, ProcessLogParam processLogParam) {
        PageHelper.startPage(page.getPage(), page.getRows());
        List<ProcessLogVO> processLogList = statLatestDao.listProcessLog(processLogParam);
        return new PageInfo<>(processLogList);
    }
}
